<script setup lang="tsx">
import { ref } from 'vue'
import { ElRadioGroup, ElRadioButton } from 'element-plus'
import ContentTable from './ContentTable.vue'
import ContentEndorsement from './ContentEndorsement.vue'

const radio1 = ref('1')

const emits = defineEmits(['close'])
</script>

<template>
  <el-radio-group v-model="radio1" size="large">
    <el-radio-button label="自有户" value="1" />
    <el-radio-button label="背书手数" value="2" />
    <el-radio-button label="承兑人黑名单" value="3" />
    <el-radio-button label="收款人黑名单" value="4" />
    <el-radio-button label="背书人黑名单" value="5" />
    <el-radio-button label="异常准入名单" value="6" />
  </el-radio-group>
  <!-- <ContentEndorsement @close="emits('close')"/> -->
  <ContentEndorsement v-if="radio1 == '2'" />
  <ContentTable v-else-if="radio1 == '1'" tcType="1"/>
  <ContentTable v-else-if="radio1 == '3'" tcType="3"/>
  <ContentTable v-else-if="radio1 == '4'" tcType="4"/>
  <ContentTable v-else-if="radio1 == '5'" tcType="5"/>
  <ContentTable v-else tcType="6"/>
</template>
